Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,905
» Latest member: werzel
» Forum threads: 2,398
» Forum posts: 12,308

Full Statistics

Online Users
There are currently 600 online users.
» 0 Member(s) | 597 Guest(s)
Bing, Google, Baidu

Latest Threads
Looking for Players for N...
Forum: Chat
Last Post: AlmightyJeremy
Yesterday, 11:22 PM
» Replies: 0
» Views: 24
Manual sorting of servers...
Forum: Questions and Suggestions
Last Post: cherybomb
Yesterday, 02:58 AM
» Replies: 2
» Views: 1,432
Project: Las Venturas Rol...
Forum: Advertisements
Last Post: Kremzy
2026-02-02, 10:14 PM
» Replies: 0
» Views: 46
Looking for Players for N...
Forum: Advertisements
Last Post: AlmightyJeremy
2026-02-02, 07:04 PM
» Replies: 0
» Views: 37
ExDM Reborn
Forum: Advertisements
Last Post: 0775448400
2026-02-02, 03:38 PM
» Replies: 1
» Views: 76
IPv6 support
Forum: Questions and Suggestions
Last Post: Markski
2026-02-02, 12:58 AM
» Replies: 1
» Views: 52
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: Pevenaider
2026-01-27, 08:48 PM
» Replies: 11
» Views: 19,332
problema afisare dialog c...
Forum: Romanian/Rom?na
Last Post: rcst3phan
2026-01-27, 07:31 PM
» Replies: 0
» Views: 90
problem dialog clan membe...
Forum: Pawn Scripting
Last Post: rcst3phan
2026-01-27, 07:30 PM
» Replies: 0
» Views: 94
Verona Community opening
Forum: Advertisements
Last Post: pmemorex2016
2026-01-27, 07:01 AM
» Replies: 0
» Views: 72

 
Exclamation [HELP ME] Creating function in Pawno
Posted by: PedroWarlock - 2021-01-25, 04:06 PM - Forum: Questions and Suggestions - Replies (2)

(google translate)

I'm trying to pass the sqlite functions to a subfunction, in order to handle all query commands for sql/mysql,?but I am not able to create a simple function, I always have this type of error below, can someone help me with what I am missing?



thanks for listening!



Code:
stock Mysql_Db_free_result(DB:dbd, string[]) {



?new Result = db_query(dbd, string);

?return Result;

}



new string2[150];

format(string2, sizeof(string2), "SELECT * FROM `account` WHERE `Name`='%s' AND `key`='%s'",DB_Escape(pName),DB_Escape(password));

Result?= Mysql_Db_free_result(Conection,string2);





BPR.pwn(49596) : warning 213: tag mismatch

BPR.pwn(49619) : warning 213: tag mismatch

Pawn compiler 3.2.3664 Copyright © 1997-2016, ITB CompuPhase


  Is there any solution to prevent bike sprint?
Posted by: Cada - 2021-01-25, 12:31 PM - Forum: Pawn Scripting - Replies (1)

Hello.



I`m devloping Role Playing server and wanna prevent bike sprint (bicycle = battering key w,?motorcycle = battering key?arrow UP).

I found that whether player press w or arrow up key in vehicle to sprint, but i dont know how to make speed lower of their vehicle or something.

If you guys have any solution, please make give me that! :>



thanks everyone.


  [Help]How to retrieve data from mysql.
Posted by: cronoxliker - 2021-01-25, 05:34 AM - Forum: Pawn Scripting - Replies (2)

I get how to send data and so on, but when it comes to retrieve the data i cant get my head arround it, i see that it uses cache and so on, can somebody explain me how do I?retrieve data successfully??



thanks


  TAXI CO. & BOATYARD
Posted by: Name - 2021-01-25, 05:25 AM - Forum: Videos and Screenshots - Replies (4)

TAXI CO. & BOATYARD INTERIORS
(both maps are from my?old map?collection, some of you probably saw these in the past)

Name: Taxi Company
Map type: Interior
Author of map: MrName (me)
Number of objects: 613
Number of textures: 695
Removed SA objects: 0
Custom objects: 0
Location of map: unknow
Map editor used: MSR's mapping system?
Reference: GTA Vice City
About map: Interior for taxi company, idea was taken from Vice City, as you can see some stuff is similar to Vice City's taxi co. interior. Interior has 2 floors and contains 4 rooms, one is the main room where you park your vehicles which is like a garage room and three small rooms - under construction room, operators room and office room.
Screenshots:
[Image: xMa91dMl.jpg]
[Image: 2nRUub8l.jpg]
[Image: 17zbc1al.jpg]
[Image: eB3AmKel.jpg]
[Image: kZS5V8Xl.jpg]
[Image: Sp5vBa6l.jpg]
[Image: 5qt4JWfl.jpg]
[Image: 80xoIUQl.jpg]
[Image: QvrPKCEl.jpg]
[Image: K2mliMEl.jpg]
[Image: wDTtBGMl.jpg]
[Image: XwDN8knl.jpg]
[Image: mFKQaNcl.jpg]
[Image: aM5ctfWl.jpg]
[Image: TYoOxTWl.jpg]
[Image: D02pdtzl.jpg]
[Image: krvQiFzl.jpg]
[Image: 16LHzBDl.jpg]


  [Help] issue with getgift command
Posted by: Disretired - 2021-01-25, 01:53 AM - Forum: Pawn Scripting - Replies (3)

So our /getgift command is not working properly, it shows a /me but is not giving the gift and is allowing us to spam the command instead of telling us to wait 5 hours after entering it. if you need anymore info let me know. It was working fine when we started but now its acting up, and nobody even touched it



https://pastebin.com/55eSzcQH



Code:
CMD:getgift(playerid, params[])

{

new string[128];



if(IsPlayerInRangeOfPoint(playerid, 3.0,2546.680908, 1403.430786, 7699.584472))

{

if(PlayerInfo[playerid][pDonateRank] >= 1)

{

if(VIPGifts == 0 && PlayerInfo[playerid][pDonateRank] < 4)

{

SendClientMessageEx(playerid, COLOR_GRAD2, "The safe is locked!");

return 1;

}

if(PlayerInfo[playerid][pGiftTime] > 0)

{

SendClientMessageEx(playerid, COLOR_GRAD2, "You have already received a gift in the last 5 hours!");

return 1;

}

format(string, sizeof(string), "* %s reaches inside the safe with his eyes closed.", GetPlayerNameEx(playerid));

ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

GiftPlayer(500, playerid);

}

}

else if(dynamicgift != 0)

{

new Float:Position[3];

GetDynamicObjectPos(dynamicgift, Position[0], Position[1], Position[2]);



if(IsPlayerInRangeOfPoint(playerid, 5.0, Position[0], Position[1], Position[2]))

{

if(PlayerInfo[playerid][pLevel] >= 3)

{

if(PlayerInfo[playerid][pGiftTime] > 0)

{

SendClientMessageEx(playerid, COLOR_GRAD2, "You have already received a gift in the last 5 hours!");

return 1;

}

format(string, sizeof(string), "* %s reaches inside the bag of gifts with their eyes closed.", GetPlayerNameEx(playerid));

ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

GiftPlayer(500, playerid);

}

else

{

SendClientMessageEx(playerid, COLOR_WHITE, "* You must be at least level 3 to use this, sorry!");

}

}

}

return 1;

}





PHP Code:
stock GiftPlayer(playeridgiveplayerid// playerid = Gifter.? giveplayerid = gift receiver

{

new 
string[128];

if(
PlayerInfo[playerid][pAdmin] >= || playerid == MAX_PLAYERS)

{

new 
randgift Random(1100);

if(
randgift >= && randgift <= 83)

{

new 
gift Random(110);

if(
gift == 1)

{

if(
PlayerInfo[giveplayerid][pConnectTime] < || PlayerInfo[giveplayerid][pWRestricted] > || PlayerInfo[giveplayerid][pDonateRank] > 2) return GiftPlayer(playeridgiveplayerid);

GivePlayerValidWeapon(giveplayerid2760000);

GivePlayerValidWeapon(giveplayerid2460000);

GivePlayerValidWeapon(giveplayerid3160000);

GivePlayerValidWeapon(giveplayerid3460000);

GivePlayerValidWeapon(giveplayerid2960000);

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won a full weapon set!");

format(stringsizeof(string), "* %s was just gifted a full weapon set, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 2)

{

if(
PlayerInfo[giveplayerid][pDonateRank] > 2) return GiftPlayer(playeridgiveplayerid);

PlayerInfo[giveplayerid][pFirstaid];

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won a first aid kit!");

format(stringsizeof(string), "* %s was just gifted a first aid kit, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 3)

{

PlayerInfo[giveplayerid][pMats] = 2000;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won 2,000 materials!");

format(stringsizeof(string), "* %s was just gifted 2,000 materials, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 4)

{

if(
PlayerInfo[giveplayerid][pWarns] != 0)

{

PlayerInfo[giveplayerid][pWarns]--;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won a single warning removal!");

format(stringsizeof(string), "* %s was just gifted a single warning removal, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else

{

SendClientMessageEx(giveplayeridCOLOR_GRAD2"Random gift ended up in a removal of one warning - let's try again!");

GiftPlayer(playeridgiveplayerid);

return 
1;

}

}

else if(
gift == 5)

{

PlayerInfo[giveplayerid][pPot] = 50;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won 50 grams of pot!");

format(stringsizeof(string), "* %s was just gifted 50 grams of pot, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 6)

{

PlayerInfo[giveplayerid][pCrack] = 25;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won 25 grams of crack!");

format(stringsizeof(string), "* %s was just gifted 25 grams of crack, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 7)

{

GivePlayerCash(giveplayerid20000);

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won $20,000!");

format(stringsizeof(string), "* %s was just gifted $20,000, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 8)

{

PlayerInfo[giveplayerid][pPaintTokens] = 10;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won 10 paintball tokens!");

format(stringsizeof(string), "* %s was just gifted 10 paintball tokens, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 9)

{

if(
PlayerInfo[giveplayerid][pDonateRank] < 1) return GiftPlayer(playeridgiveplayerid);

PlayerInfo[giveplayerid][pTokens] = 5;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won 5 VIP tokens!");

format(stringsizeof(string), "* %s was just gifted 5 VIP tokens, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 10)

{

PlayerInfo[giveplayerid][pExp] = 5;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won 5 Respect Points!");

format(stringsizeof(string), "* %s was just gifted 5 Respect Points, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

}

else if(
randgift 83 && randgift <= 98)

{

new 
gift Random(19);

if(
gift == 1)

{

GivePlayerCash(giveplayerid150000);

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won $150,000!");

format(stringsizeof(string), "* %s was just gifted $150,000, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 2)

{

PlayerInfo[giveplayerid][pMats] = 15000;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won 15,000 materials!");

format(stringsizeof(string), "* %s was just gifted 15,000 materials, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 3)

{

PlayerInfo[giveplayerid][pExp] = 10;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won 10 respect points!");

format(stringsizeof(string), "* %s was just gifted 10 respect points, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 4)

{

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won a free car!");

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Note: This rare reward may take up to 48 hours to be rewarded, contact Shop Techs.");

format(PlayerInfo[giveplayerid][pFlag], 128"Free Car (Gift)");

format(stringsizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just gifted %s and he won a free car."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));

ABroadCast(COLOR_YELLOWstring4);

if(
playerid != MAX_PLAYERS)

{

new 
year,month,day,log[128];

getdate(yearmonthday);

format(logsizeof(log), "AdmCmd: %s has just gifted %s and he won a free car(%d-%d-%d)"GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), monthdayyear);

Log("logs/gifts.log"log);

} else {

new 
year,month,day,log[128];

getdate(yearmonthday);

format(logsizeof(log), "AdmCmd: %s was just gifted by the system and he won a free car(%d-%d-%d)"GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), monthdayyear);

Log("logs/gifts.log"log);

}

format(stringsizeof(string), "* %s was just gifted a free car, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 5)

{

if(
PlayerInfo[giveplayerid][pDonateRank] > 0)

{

PlayerInfo[giveplayerid][pTokens] = 15;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won 15 VIP tokens!");

format(stringsizeof(string), "* %s was just gifted 15 VIP tokens, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else

{

PlayerInfo[giveplayerid][pDonateRank] = 1;

PlayerInfo[giveplayerid][pTempVIP] = 10800;

PlayerInfo[giveplayerid][pBuddyInvited] = 1;

format(stringsizeof(string), "You have been invited to become a Level 1 VIP for 3 hours. Enjoy!"GetPlayerNameEx(giveplayerid));

SendClientMessageEx(giveplayeridCOLOR_LIGHTBLUEstring);

format(stringsizeof(string), "BUDDY INVITE: %s has won a buddyinvite."GetPlayerNameEx(giveplayerid));

Log("logs/setvip.log"string);

format(stringsizeof(string), "* %s was just gifted 3 hours of VIP, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

}

else if(
gift == 6)

{

PlayerToyInfo[giveplayerid][4][ptModelID] = 18643;

PlayerToyInfo[giveplayerid][4][ptBone] = 6;

PlayerToyInfo[giveplayerid][4][ptPosX] = 0.0;

PlayerToyInfo[giveplayerid][4][ptPosY] = 0.0;

PlayerToyInfo[giveplayerid][4][ptPosZ] = 0.0;

PlayerToyInfo[giveplayerid][4][ptRotX] = 0.0;

PlayerToyInfo[giveplayerid][4][ptRotY] = 0.0;

PlayerToyInfo[giveplayerid][4][ptRotZ] = 0.0;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won a Free Laser Pointer!");

format(stringsizeof(string), "* %s was just gifted a Free Laser Pointer, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 7)

{

if(
PlayerInfo[giveplayerid][pADMuteTotal] < 1) return GiftPlayer(playeridgiveplayerid);

PlayerInfo[giveplayerid][pADMuteTotal] = 0;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won a Free Admute Reset!");

format(stringsizeof(string), "* %s was just gifted a Free Admute Reset, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 8)

{

if(
PlayerInfo[giveplayerid][pNMuteTotal] < 1) return GiftPlayer(playeridgiveplayerid);

PlayerInfo[giveplayerid][pNMuteTotal] = 0;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won a Free Nmute Reset!");

format(stringsizeof(string), "* %s was just gifted a Free Nmute Reset, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

}

else if(
randgift 98 && randgift <= 100)

{

new 
gift Random(16);

if(
gift == && PlayerInfo[giveplayerid][pDonateRank] <= 2// Silver VIP can get it extended, I suppose

{

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won one month of Silver VIP!");

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Note: This rare reward may take up to 48 hours to be rewarded.");

format(PlayerInfo[giveplayerid][pFlag], 128"Free Silver VIP (Gift)");

format(stringsizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just gifted %s and he won one month of Silver VIP."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));

ABroadCast(COLOR_YELLOWstring2);

new 
year,month,day,log[128];

getdate(yearmonthday);

format(logsizeof(log), "AdmCmd: %s has just gifted %s and he won one month of Silver VIP(%d-%d-%d)"GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), monthdayyear);

Log("logs/gifts.log"log);

format(stringsizeof(string), "* %s was just gifted one month of Silver VIP, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 2)

{

if(
playerid != MAX_PLAYERS)

{

new 
year,month,day,log[128];

getdate(yearmonthday);

format(logsizeof(log), "AdmCmd: %s has just gifted %s and he won a free house(%d-%d-%d)"GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), monthdayyear);

Log("logs/gifts.log"log);

} else {

new 
year,month,day,log[128];

getdate(yearmonthday);

format(logsizeof(log), "AdmCmd: %s was just gifted by the system and he won a free house(%d-%d-%d)"GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), monthdayyear);

Log("logs/gifts.log"log);

}

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won a free house!");

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Note: This rare reward may take up to 48 hours to be rewarded.");

format(PlayerInfo[giveplayerid][pFlag], 128"Free House (Gift)");

format(stringsizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just gifted %s and he won a free house."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));

ABroadCast(COLOR_YELLOWstring2);

format(stringsizeof(string), "* %s was just gifted a free house, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 3)

{

if(
PlayerInfo[giveplayerid][pDonateRank] < 1) return GiftPlayer(playeridgiveplayerid);

PlayerInfo[giveplayerid][pTokens] = 50;

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won 50 VIP tokens!");

format(stringsizeof(string), "* %s was just gifted 50 VIP tokens, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 4)

{

new 
year,month,day,log[128];

getdate(yearmonthday);

format(logsizeof(log), "AdmCmd: %s has just gifted %s and he won $500,000. (%d-%d-%d)"GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), monthdayyear);

Log("logs/gifts.log"log);

GivePlayerCash(giveplayerid500000);

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won $500,000!");

format(stringsizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just gifted %s and he won $500,000."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));

ABroadCast(COLOR_YELLOWstring2);

format(stringsizeof(string), "* %s was just gifted $500,000, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

else if(
gift == 5)

{

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won one month of Gold VIP!");

SendClientMessageEx(giveplayeridCOLOR_GRAD2" Note: This rare reward may take up to 48 hours to be rewarded.");

format(PlayerInfo[giveplayerid][pFlag], 128"Free Gold VIP (Gift)");

format(stringsizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just gifted %s and he won one month of Gold VIP."GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));

ABroadCast(COLOR_YELLOWstring2);

new 
year,month,day,log[128];

getdate(yearmonthday);

format(logsizeof(log), "AdmCmd: %s has just gifted %s and he won one month of Gold VIP(%d-%d-%d)"GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), monthdayyear);

Log("logs/gifts.log"log);

format(stringsizeof(string), "* %s was just gifted one month of Gold VIP, enjoy!"GetPlayerNameEx(giveplayerid));

ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);

}

}

PlayerInfo[giveplayerid][pGiftTime] = 300;

}

return 
1;



  [MAP] Unisex Hairdresser | Mirsat24
Posted by: mirsat24 - 2021-01-24, 12:42 PM - Forum: Videos and Screenshots - Replies (2)

Discord:Mirsat24#8134



[Video: http://https://www.youtube.com/watch?v=3r2O9XGvxO0]


  [MAP] Laundromat - Interior
Posted by: Polter - 2021-01-24, 12:18 PM - Forum: Videos and Screenshots - Replies (1)

Make sure to check it out, tell me what do you think about map design? Cheers! :)



Download link is in video description.



[Video: https://www.youtube.com/watch?v=x9lHn6gGm5E]


  Server Sided Vehicle Health?
Posted by: JaKe Elite - 2021-01-23, 01:10 PM - Forum: Pawn Scripting - Replies (2)

Hi!



I would like to know if it's possible to make the vehicle health server-sided? Our server has been attacked lately by hackers and they use a CLEO mod, probably something like "Plant & Detonate" mod to make the vehicles exploded.



The way how their hack works was something like



-Type a command to get in a vehicle (it doesn't matter if it's occupied, the previous driver gets kicked and they become the driver)

-They then type a command to plant the bomb (not quite sure)

-Gets out of the vehicle, instantly types a command to detonate or set the vehicle on fire

-teleport far from the vehicle or somewhere nearby?



This was done with their keybinding (except for the part where they have to input the vehicleID of their target)



Is there any way to counter this or to at least make the vehicle health server sided to prevent this kind of stuff??



I am not quite sure if this is the right section or area to post this but I need a clue where to start.


  How to Fix this Run time error 19: "File or function is not found"
Posted by: nocode - 2021-01-23, 11:04 AM - Forum: Pawn Scripting - Replies (5)

server.cfg:?https://prnt.sc/xhwnwi
plugins:?https://prnt.sc/xhwp60
?

Code:
[05:57:34]

[05:57:34] Server Plugins

[05:57:34] --------------

[05:57:34]? Loaded 0 plugins.



[05:57:34] I couldn't load any gamemode scripts. Please verify your server.cfg

[05:57:34] It needs a gamemode0 line at the very least.



----------

Loaded log file: "server_log.txt".

----------



SA-MP Dedicated Server

----------------------

v0.3.7-R2, (C)2005-2015 SA-MP Team



[05:57:37]

[05:57:37] Server Plugins

[05:57:37] --------------

[05:57:37]? Loaded 0 plugins.



[05:57:37] I couldn't load any gamemode scripts. Please verify your server.cfg

[05:57:37] It needs a gamemode0 line at the very least.



----------

Loaded log file: "server_log.txt".

----------



SA-MP Dedicated Server

----------------------

v0.3.7-R2, (C)2005-2015 SA-MP Team



[05:57:40]

[05:57:40] Server Plugins

[05:57:40] --------------

[05:57:40]? Loaded 0 plugins.



[05:57:40] I couldn't load any gamemode scripts. Please verify your server.cfg

[05:57:40] It needs a gamemode0 line at the very least.



----------

Loaded log file: "server_log.txt".

----------



SA-MP Dedicated Server

----------------------

v0.3.7-R2, (C)2005-2015 SA-MP Team



[05:57:43]

[05:57:43] Server Plugins

[05:57:43] --------------

[05:57:43]? Loaded 0 plugins.



[05:57:43] I couldn't load any gamemode scripts. Please verify your server.cfg

[05:57:43] It needs a gamemode0 line at the very least.



----------

Loaded log file: "server_log.txt".

----------



SA-MP Dedicated Server

----------------------

v0.3.7-R2, (C)2005-2015 SA-MP Team



[05:57:46] filterscripts = ""? (string)

[05:57:46]

[05:57:46] Server Plugins

[05:57:46] --------------

[05:57:46]? Loaded 0 plugins.



[05:57:46]

[05:57:46] Filterscripts

[05:57:46] ---------------

[05:57:46]? Loaded 0 filterscripts.



[05:57:46] Script[gamemodes/CODMW3.amx]: Run time error 19: "File or function is not found"

[05:57:46] Number of vehicle models: 0



----------

Loaded log file: "server_log.txt".

----------



SA-MP Dedicated Server

----------------------

v0.3.7-R2, (C)2005-2015 SA-MP Team



[05:57:53] filterscripts = ""? (string)

[05:57:53]

[05:57:53] Server Plugins

[05:57:53] --------------

[05:57:53]? Loaded 0 plugins.



[05:57:53]

[05:57:53] Filterscripts

[05:57:53] ---------------

[05:57:53]? Loaded 0 filterscripts.



[05:57:53] Script[gamemodes/CODMW3.amx]: Run time error 19: "File or function is not found"

[05:57:53] Number of vehicle models: 0


  I need help to fix Dini.inc
Posted by: nocode - 2021-01-23, 07:48 AM - Forum: Pawn Scripting - No Replies

Original plugin:?https://github.com/AndreT/samp-vortex-rp...e/Dini.inc



Error: https://prnt.sc/xhnokq