18.05.2013, 21:56
Chega no segundo checkpoint ele nгo avanзa :S
Codes
Codes
pawn Код:
command(trabalhar, playerid, params[])
{
if(GetPVarInt(playerid,"TempoTrabalho") > GetTickCount())return SendClientMessage(playerid, -1, "Vocк precisa esperar 20 minutos para trabalhar novamente." );
SetPVarInt(playerid, "TempoTrabalho", GetTickCount() + 1000*60*20);
switch(PlayerInfo[playerid][pEmp])
{
case 1:
{
SetPlayerCheckpoint(playerid, -261.7523, 1198.7144, 19.6861, 5.0);
PlayerInfo[playerid][pTrabalho]=1;
SendClientMessage(playerid, 0x00FF00FF,"Prefeitura: Siga o checkpoint sem sair do veнculo!");
}
}
return true;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(PlayerInfo[playerid][pTrabalho] == 1)
{
switch(PlayerInfo[playerid][pEmp])
{
case 1:DisablePlayerCheckpoint(playerid), SetPlayerCheckpoint(playerid, -295.6418, 1042.0732, 19.6833, 5.0), PlayerInfo[playerid][pEmp]=2;
}
}
else if(PlayerInfo[playerid][pTrabalho] == 2)
{
switch(PlayerInfo[playerid][pEmp])
{
case 1:DisablePlayerCheckpoint(playerid), SetPlayerCheckpoint(playerid, -173.7528,1020.7569,19.8346, 5.0), PlayerInfo[playerid][pEmp]=3;
}
}
else if(PlayerInfo[playerid][pTrabalho] == 3)
{
switch(PlayerInfo[playerid][pEmp])
{
case 1:DisablePlayerCheckpoint(playerid), SetPlayerCheckpoint(playerid, -88.5701, 1160.1382, 19.8345, 5.0), PlayerInfo[playerid][pEmp]=4;
}
}
else if(PlayerInfo[playerid][pTrabalho] == 4)
{
switch(PlayerInfo[playerid][pEmp])
{
case 1:DisablePlayerCheckpoint(playerid), SetPlayerCheckpoint(playerid, -45.0819,1176.7374,19.5425, 5.0), PlayerInfo[playerid][pEmp]=5;
}
}
else if(PlayerInfo[playerid][pTrabalho] == 5)
{
switch(PlayerInfo[playerid][pEmp])
{
case 1:DisablePlayerCheckpoint(playerid), SetPlayerCheckpoint(playerid, -84.2682,1369.9073,10.3658, 5.0), PlayerInfo[playerid][pEmp]=6;
}
}
else if(PlayerInfo[playerid][pTrabalho] == 6)
{
switch(PlayerInfo[playerid][pEmp])
{
case 1:DisablePlayerCheckpoint(playerid), SetPlayerCheckpoint(playerid, 91.2695,1922.1910,18.0652, 5.0), PlayerInfo[playerid][pEmp]=7;
}
}
else if(PlayerInfo[playerid][pTrabalho] == 7)
{
switch(PlayerInfo[playerid][pEmp])
{
case 1:DisablePlayerCheckpoint(playerid), PlayerInfo[playerid][pEmp]=0, GivePlayerMoney(playerid, 150);
}
}
return 1;
}