Am I doing something wrong? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Am I doing something wrong? (
/showthread.php?tid=317211)
Am I doing something wrong? -
Mark_Weston - 10.02.2012
Hey there, I just wanted to ask quickly if I am doing something wrong.
pawn Код:
CMD:clearnstreet(playerid, params[]) {
if(jobVariables[playerVariables[playerid][pJob]][jJobType] == 5 || playerVariables[playerid][pAdminDuty] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
new
vehString[72],
Float: soPos[3],
vehicleID = GetPlayerVehicleID(playerid);
if(playerVariables[playerid][pJobDelay] == 0) { // DELAY!1
format(vehString, sizeof(vehString), "Start cleaning %s.", VehicleNames[GetVehicleModel(vehicleID) - 400]);
SendClientMessage(playerid, COLOR_WHITE, vehString);
playerVariables[playerid][pJobDelay] = 120;
}
else {
format(vehString, sizeof(vehString), "You need to wait %d seconds until you can clean the streets again.",playerVariables[playerid][pJobDelay]);
SendClientMessage(playerid, COLOR_GREY, vehString);
}
}
}
return 1;
}
I have a quick question where exactly do I put the checkpoints? As the player enters them they disappear?
AW: Am I doing something wrong? -
Drebin - 10.02.2012
OnPlayerPickUpPickup()
And there DisablePlayerCheckpoint();
Re: AW: Am I doing something wrong? -
Mark_Weston - 10.02.2012
Quote:
Originally Posted by Drebin
OnPlayerPickUpPickup()
And there DisablePlayerCheckpoint();
|
I know the functions. Where exactly?
Re: AW: Am I doing something wrong? -
[ABK]Antonio - 10.02.2012
Quote:
Originally Posted by Drebin
OnPlayerPickUpPickup()
And there DisablePlayerCheckpoint();
|
no....
public
OnPlayerEnterCheckpoint(playerid)
Add an if statement - if(thisismycheckpoint) - do stuff inside of it like create a new one going to the next..or whatever you're going to do
AW: Am I doing something wrong? -
Drebin - 10.02.2012
Lol WTF did i write D:
Ofc it's OnPlayerEnterCheckpoint