Search Results
Try to place this under the OnPlayerSpawn callback. This might make things buggy and laggy for players that spawn (on death, entering a new interior etc..) so try to make it specific, like maybe just ...
139
Oh I understand now, I misread your topic sorry Well, if you're talking about changing the string for one player, but keeping it the same for the other players, I'm not really sure it's currently pos...
93
Well it's supposed to be sent to players who are under TEAM_ADMIN. If it doesn't, and it sends the textdraw to everyone online, you should post the command/function this snippet is taken from + the de...
93
Change the 'i' to the playerid you wish to show the textdraw to. example: TextDrawShowForPlayer(playerid, Message);
93
When people use the command (/ls), check if they are in the are of DM3. If so, remove their weapons so they cannot use them to DM anyone anywhere. Although, if you wanna get fancy with it, when a play...
71
I'm gonna go ahead and guess you're working under the OnPlayerRequestClass callback. As the previous comment said, keep a counter in which's value changes depending on the players in this team, for ex...
73
pawn Код: CMD:help(playerid, params[]){/* Send a bunch of messages here with your servers commands, which you will be writing them manually.   example: SendClientMessage(playerid, 0xffffffAA, "C...
98
Theoretically speaking, First-Person-View mode is easy to achieve with a simple script, just place an object inside the player's head and make the camera follow it in a very rapid motion. Practically ...
159
The program cannot locate where the variable PlayerCar[] is located and so for him it doesn't exist. I'm assuming you have a problem defining this variable, so if you would please share the part where...
129
You can always use a textdraw box, but I'm afraid it will look sorta ugly, I recommend Zamaroht's textdraw editor.
73
Quote: Originally Posted by xganyx You should use : pawn Код: if(Admin[playerid] == 1) on line 103 to pawn Код: if(IsPlayerAdmin(playerid)) this is rcon admin if u do like if (Ad...
1,722
https://sampwiki.blast.hk/wiki/AttachObjectToPlayer Maybe that's what you're looking for? Having the wrong object ID might also result in a non-existant (or too small/big to be visible) object being c...
148
4 global variables have the same name as those inside the udb_hash stock. If you look ontop of your script, you will find 4 variables named "sl, "sl2", "int" If you've no use to them, either delete th...
95
You can't use strcmp and zcmd at the same time, you must remove the OnPlayerCommandText callback, and go along with your ZCMD commands.
161
Instead of commands, use keys and buttons to move it, would make it 10 times better, good job anyways.
407
Quote: Originally Posted by Mmartin What? Your code makes zero sense, why is the loop there? pawn Код: public OnPlayerStreamIn(playerid, forplayerid){     if(gTeam[playerid] == NINJ...
220
pawn Код: public OnPlayerStateChange(playerid, newstate, oldstate){    if(newstate == 2)    {        new CarCheck = GetPlayerVehicleID(playerid);        if{CarCheck == Cars[pd1] || Car...
104
Post the errors next time. pawn Код: public OnPlayerCommandText(playerid, cmdtext[]){    if (strcmp("/gotospawn", cmdtext, true, 10) == 0)    {        SetPlayerPos(playerid, 1758.0182,-189...
64
pawn Код: public OnPlayerStreamIn(playerid, forplayerid){     for(new i = 0; i < MAX_PLAYERS; i++)     if(gTeam[playerid] == NINJA)     {            if(gTeam[i] == NINJA &&am...
220
pawn Код: if(CarCheck == Cars[pd1] || CarCheck == Cars[pd2] || CarCheck == Cars[pd3] || CarCheck == Cars[pd4] || CarCheck == Cars[pd5] || CarCheck == Cars[pd6] || CarCheck == Cars[pd7] || CarCheck...
104