Search Results
This is because the player is standing far away and the part of the map shown for him or her is not streamed. Set the player's position somewhere behind the camera's position and it will be fixed.
85
Quote: Originally Posted by W00Z Id it : 1147. The wiki describes this sound as 'SOUND_SWEETS_HORN'. However, I'll give it a try. EDIT: I tested it, it is the sound of a car horn.
75
So, do you want to check if there is a space in the player's name? If yes, then you can use strfind: pawn Код: GiveNameSpace(name[]){   if(strfind(name, ' ') == -1)   {     return 0;   ...
134
Hi guys! I think the title is self-explanatory, I'm looking for the sound ID of the ringtone in single player mode. I've searched the sound IDs, but no luck. Thanks.
75
pawn Код: if(!strcmp(cmdtext, "/inv", true) || !strcmp(cmdtext, "/inventory", true)) // By LordMan  {    if(IsPlayerConnected(playerid))    {      if(gPlayerLogged[playerid] == 0)      ...
102
You can get the model ID (NOT the vehicle ID!) of player's vehicle by GetPlayerVehicleModel and send him or her to the appropriate tuning shop by checking if the vehicle is tunable in which shop. You ...
79
pawn Код: public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){   AddVehicleComponent(vehicleid, 1010);   return 1;} The 'vehicleid', namely the id of the vehicle that the player is ...
83
Quote: Originally Posted by Coole[AG ] This happens to me too, i have 160 cars (not including non-buyable cars), when i start it says 68 loaded but all cars are there.. No big deal When...
141
There is an appropriate animation, I've seen it on an RP server, but I don't know which one is that.
176
I guess this map is an object on a wall somewhere in the game. (There are maps of SA in Toreno's House and in the Lil' Probe Inn, and at many other places.) You can't show a player a picture in-game.
92
Put pawn Код: SetWorldTime(0); under OnGameModeInit.
56
pawn Код: if(strcmp("/team", cmdtext, true) == 0){   if(IsPlayerConnected(playerid))   {     GetPlayerName(playerid, sendername, sizeof(sendername));     while ((idx < strlen(cmdtext)...
190
You have to put { brackets under the strcmp lines. For example: pawn Код: if(!strcmp("/buy micro SMG", cmdtext, true)){   SendClientMessage(playerid,0xAA3333AA,"You have bought a Micro SMG for ...
183
Check the player's virtual world in the /exit command if the exit positions are the same. pawn Code: if(IsPlayerInRangeOfPoint( ... ) //The exit position{   if(GetPlayerVirtualWorld(playerid) == 0...
68
You can put as many IDs as you want: pawn Код: if(GetVehicleModel(GetPlayerVehicleID(playerid)) == ID1 || GetVehicleModel(GetPlayerVehicleID(playerid)) == ID2 || GetVehicleModel(GetPlayerVehicleI...
161
It depends on what the player sets to be the shift. For example, my shift key is the sprint button, but at my friend, it is the jump button.
144
I think OnPlayerUpdate is better because it removes the weapon immediately and it doesn't make the server lag if you script simple operations into it as far as I know.
152
You can store the remaining jail time in a variable, save it into the user file and send the player back to prison when he or she relogs.
177
pawn Код: if(strcmp("/nos", cmdtext, true) == 0)   {     if(IsPlayerInVehicle(playerid))     {        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == ... ); // Check the model of t...
161
I think it is better to do with OnPlayerUpdate. It is called when the server's or the player's stats (including weapons) change, so you can remove the weapons immediately. pawn Код: public OnPlay...
152