Search Results
pawn Код: public OnGameModeInit(){    AddPlayerClass( 0, 2195.4729, 1688.1770, 12.3672, 266.4879, 30, 10000, 28, 10000, 24, 10000 );  // Criminal Class   1    AddPlayerClass( 78, 2195.8218, ...
74
I think it writes to the console what errors the npc is experiencing when joining. Maybe not though. There could be a mis-spelling in the name of the script you assigned to it. Try re-recording it ...
83
Not sure what you mean by keeps moving but I notice that you never change the gStatus to closed or opened. pawn Код: if(GateInfo[gate][gStatus] == GATE_CLOSED){         MoveObject(GateInfo[g...
87
The problem is in the array size. Check the enum TSpawnLocation.
204
Well it is doing what it's supposed to be. Try creating a variable to store the time when they are detected and check it before looking into them further.
104
Look at GetPlayerCameraFrontVector. https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector They also provide examples. It may or may not be what you're looking for, depending on what you're tryin...
123
Probably. It looks like that was made with SA:MP but I know objects used in cutscenes like suitcases and whatnot caused crashes in previous versions. Perhaps fixed now? Try and find it.
145
Maybe OnPlayerUpdate isn't the best place to that many area checks for all the players. A repeating timer of sorts may be more appropriate but that is entirely up to you. You just need to know if th...
80
Well it kind of depends on what the purpose of this is. Because the length of time it would take would depend on what vehicle you're using. Also the distance would be in GTA units which could be con...
112
No. SA:MP deals with that long before you get access.
97
pawn Код: stock ReturnRichest(){    new        tmp,        richest = -1,        amount;    for(new i; i<MAX_PLAYERS; i++)    {        tmp = GetPlayerMoney(i);        i...
214
That is a very old and out-dated include. It's not super efficient and has a lot of extra stuff in it if you just want it for one function. You'd probably be better off making what you need from it ...
87
Quote: Originally Posted by Y_Less When you say "the black guy", WHICH black guy do you mean? Hahaha
905
Try returning 1 inside at the end of the if statement.
108
I'm pretty sure that's too many arrays for pawn. It only supports up to 2D arrays and having that many intertwined can cause issues.
145
You would need to store a variable that stores what vehicle the player was driving which could lead to problems when you have multiple players locking and unlocking the same vehicle. It might be easi...
130
CreateDynamicPickup isn't a native function. You need to use whatever callback was made for that function. Probably what curdy said.
112
Try this. pawn Код: CMD:checkweapons(playerid, params[]){    if(PlayerInfo[playerid][AdminLevel] >= 2)    {        if(params[0])        {            new              Â...
195
I don't think it gets destroyed. Best just to destroy it after to be safe. Or if you were curious, you could do a test.
114