04.02.2009, 18:26
Hiya guys im working on a dumper job and all works fine but i have one problem... i cant figure out how to freeze the dumper for 5 secons when the checkpoint.. and for the client msg to say loading then 5 sec l8ter collected and then make the player controlable any help appreaciated with this as im stuck
Thanks
[quote]
IsCollecting[playerid] = 0;
else if(IsCollecting[playerid] >0)
{
new tmpcar2 = GetPlayerVehicleID(playerid);
new tmpcar = GetPlayerVehicleID(playerid);
if(IsADumper(tmpcar2))
{
if(IsCollecting[playerid]==1)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Rubbish loading.");
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Rubbish Collected.");
TogglePlayerControllable(playerid, 1);
SetPlayerCheckpoint(playerid, -404.1214,-1300.5642,30.7730,8.0);
IsCollecting[playerid] = 2;
}
else if(IsCollecting[playerid]==2)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Rubbish loading.");
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Rubbish Collected.");
TogglePlayerControllable(playerid, 1);
SetPlayerCheckpoint(playerid, -466.5224,-1296.8861,33.4559,8.0);
IsCollecting[playerid] = 3;
}
Thanks
[quote]
IsCollecting[playerid] = 0;
else if(IsCollecting[playerid] >0)
{
new tmpcar2 = GetPlayerVehicleID(playerid);
new tmpcar = GetPlayerVehicleID(playerid);
if(IsADumper(tmpcar2))
{
if(IsCollecting[playerid]==1)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Rubbish loading.");
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Rubbish Collected.");
TogglePlayerControllable(playerid, 1);
SetPlayerCheckpoint(playerid, -404.1214,-1300.5642,30.7730,8.0);
IsCollecting[playerid] = 2;
}
else if(IsCollecting[playerid]==2)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Rubbish loading.");
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Rubbish Collected.");
TogglePlayerControllable(playerid, 1);
SetPlayerCheckpoint(playerid, -466.5224,-1296.8861,33.4559,8.0);
IsCollecting[playerid] = 3;
}