26.07.2013, 20:37
Quote:
Nгo me lembro direito, mas, acho que deve ser assim:
pawn Код:
|
Aki esta o Comando
pawn Код:
if (strcmp("/timedrift", cmdtext, true, 10) == 0)
{
if(getCheckpointType(playerid)!=TT_START)
{
SendClientMessage(playerid,VERMELHO,"{3cff00}[TBD] {FFFFFF}Vocк deve estar no local de partida.");
return 1;
}
new
VeiculoElegy = GetPlayerVehicleID(playerid),
Dirigindo = GetPlayerState(playerid)
;
if(Dirigindo == PLAYER_STATE_DRIVER)
{
if(VeiculoElegy != 562) return SendClientMessage(playerid, -1 ,"[ERRO] Somente Elegy.");
if(IsPlayerInAnyVehicle(playerid))
PutPlayerInVehicle(playerid, 562, 0);
new String[228];
new pname[MAX_PLAYER_NAME];
format(String, sizeof(String), "{3cff00}[TBD]{FFFFFF}Atenзгo Comeзando... {00FF00}%s {FFFFFF}Tenha uma Boa Sorte!", pname);
SendClientMessage(playerid, -1, String);
SetCameraBehindPlayer(playerid);
new Rand = random(1000);
SetPlayerVirtualWorld(playerid, Rand);
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), Rand);
TogglePlayerControllable(playerid,0);
Motocountdown[playerid] = 6;
SetPlayerRaceCheckpoint(playerid,0,racecheckpoints[0][0],racecheckpoints[0][1],racecheckpoints[0][2],racecheckpoints[1][0],racecheckpoints[1][1],racecheckpoints[1][2],10);
DisablePlayerCheckpoint(playerid);
}