Search Results
pawn Код:
COMMAND:GODON(playerid, params[5]){SetPlayerHealth(playerid, 99999);}
214
Is PlayerInfo[playerid][pKey] a string?
231
else if (isplayerwell[playerid] == false && health >= 30)
{
ClearAnimations(playerid);
isplayerwell[playerid] = true;
}
284
pawn Code:
if(strcmp(cmdtext, "/respawncars", true) == 0)Â Â {Â Â Â Â if (IsPlayerAdmin(playerid))Â Â Â Â {Â Â Â Â Â Â new inVeh = 0;Â Â Â Â Â Â for(new i = 0; i < MAX_VEHICL...
303
pawn Код:
forward Lotto(number);if(strcmp(cmd, "/startlotto", true) == 0)Â Â {Â Â Â Â if(IsPlayerConnected(playerid))Â Â Â Â {Â Â Â Â Â Â if(PlayerInfo[playerid][pAdmin] >= 1337...
135
pawn Код:
#include <a_samp>public OnPlayerConnect(playerid){Â Â DisablePlayerCheckpoint(playerid);Â Â return 1;}public OnPlayerEnterCheckpoint(playerid){Â Â ShowPlayerDialog(playerid, ...
286
pawn Code:
new inVeh = 0;Â Â for(new i = 0; i < MAX_VEHICLES; i++)Â Â {Â Â Â Â for (new j = 0; j < MAX_PLAYERS; j++)Â Â Â Â {Â Â Â Â Â Â if (IsPlayerInVehicle(j, i))Â Â Â Â...
303
pawn Код:
public OnPlayerConnect(playerid){Â Â DisablePlayerCheckpoint(playerid);Â Â SetPlayerCheckpoint(playerid, 2.1507,-29.0139,1003.5494, 2.0);Â Â return 1;}public OnPlayerEnterCheckpoin...
286
Not tested
pawn Код:
#include <a_samp>new spamCount[MAX_PLAYERS];new previousWord[MAX_PLAYERS][128];public OnGameModeInit(){Â Â SetTimer("antiSpam", 5000, 1);}public OnPlayerConnect(playe...
397
Put this outside the loop
pawn Код:
SetWorldTime(12);//12:00
and this under OnPlayerConnect
pawn Код:
TogglePlayerClock(playerid, 0); // hide the clock
206
pawn Код:
for(new i = 0; i < 247; i++)Â Â {Â Â Â Â if(PlayerToPoint(2.0,i,2.1507,-29.0139,1003.5494))Â Â Â Â {Â Â Â Â Â Â ShowPlayerDialog(i, 752, DIALOG_STYLE_LIST, "Welcome", ...
286
You will have something like this in your script
pawn Код:
strtok(const string[], &index){Â Â new length = strlen(string);Â Â while ((index < length) && (string[index] <= ' ...
316
The function will only work if the player is in a vehicle. How do you use the function ?
117
Delete the whole strtok function and replace your OnPlayerCommandText with this
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]){Â Â if(strcmp(cmdtext, "/lvap", true) == 0)Â Â {
316
pawn Код:
droppedWepInfo[some index][some index][0] = 0droppedWepInfo[some index][some index][1] = 0//etc
or something
283
You never actually reset any info in your enum, you just update it. If the file doesn't exist, then you need to reset/delete the info in the enum for that file/weapon
283
Do you even have a database running on your computer?
228
Try this
pawn Код:
new robmoney[MAX_PLAYERS];public pRobTimer(playerid){Â Â robmoney[playerid] += random(50000);Â Â pRobCount[playerid]--;Â Â IsRobbing[playerid] =1;Â Â new rbgt[128];Â Â...
157
Use dUserSetFLOAT
Код:
dUserSetFLOAT(PlayerName2(playerid)).("X",CarInfo[IsOwner[vehicleid]][CarX]);
dUserFLOAT(PlayerName2(playerid)).("X");
160
Print out the inputtext to see if it holds the suggestion. If It's the same as the text you entered in the dialog, then It's a problem with your database
200