Search Results
Create a timer, you can put it in OnGameModeInit: SetTimer("PlayerTime", 1000, 0); Create the function: forward PlayerTime(); // dont forget the forward since its called in a timer public PlayerTim...
183
It is possible but it's complicated. You need to get the player camera vector, I've checked the values it gives, when you look completely up, it gives 0.707106 (to the sky) and completely down (to the...
155
Could you explain a bit more about what you're trying to do? Do you want to be able to click on the ground or on a player/vehicle or anything in 3D space?
155
gamemode(n) (N) (t) - It's possible to set the gamemode that plays, how many times it plays and when it plays by editing the values here. To use this correctly you must understand how it works, (n) is...
83
Hi, I'm having problems with my gothfather script, when I send 6 UPDATE queries, it stops and starts updating all the stats over and over again... (but not all of them) Maybe because the memory is fu...
28,215
This will teleport you, if you are in a vehicle or not... Код: if(strcmp(cmd, "/tankdm", true) == 0) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); Se...
237
Be sure every function in de commands returns 1. If it is returning 0, it will say Unknown command...
608
https://sampwiki.blast.hk/wiki/SetPlayerInterior ?
308
Well i stands for a playerid. So you need to find the player to send it to. I don't know but maybe you removed this: Код: for(new i = 0; i < MAX_PLAYERS; i++) { It should be somewhere above t...
159
Well you need to look at [ i ].. You need to set i to the playerid of the player.
159
Try changing it to return 1;
104
Just put user_id on auto_increcement and then use INSERT
267
Код: Quote: public Startup(playerid, vehicleid) { if(vehicleid == 509 || vehicleid == 481 || vehicleid == 510) { return 1; } if(GetPlayerState(playerid) == PLAY...
105
Try this: Код: Quote: if(!strcmp("/buyprod", cmdtext, true,9)) { for(new i; i<sizeof(truck); i++) { if(GetPlayerMoney(playerid)<=499) return SendClientMessage(pl...
119
you could try Quote: while(i < sizeof(truck) { Your codes here i++ } Dont know why but somethimes for() didn't work for me either :S
119
This should work: Quote: forward message(); Quote: SetTimer("message",1440000,true); Quote: public message() { for(new i = 0; i < MAX_PLAYERS...
129
So if I understand this right, the trucks are vehicleid's? So truck[1] is a vehicleid right?
119