02.07.2011, 13:23
Quote:
Omg thanks for your quick help!
Now i also understandt timers PS: Could you help me with one more thingy?: When someone is in a car and it gives that message it should also happend that when he gets out, a timer starts of 3 seconds and that after that the peeing action goes on. |
erm , something like:
pawn Код:
new Toilet[MAX_PLAYERS];
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{ if(Toilet[playerid] == 1)
{
//do whatyouwant
}
return 1;
}
pawn Код:
Toilet[playerid] = 1;
pawn Код:
forward Hastogo(playerid);
public Hastogo(playerid)
{
SendClientMessage(playerid, COLOR_RED, "You could not hold it in anylonger! You've started to urinate!");
if(IsPlayerInAnyVehicle(playerid))
{ Toilet[playerid] = 1;
SendClientMessage(playerid, COLOR_RED, "Quick, get out! You dont want to pee all over de car seat dont you?");
}
else
{
SetPlayerSpecialAction(playerid, 68);
}
return 1;
}