e pq o menino posto o codigo incompleto vc precisa criar as PUBLIC que estгo dentro do site timer
@EDIT
PHP код:
forward CountDown();
new Count = 5;
new CountText[5][5] =
{
"~r~1",
"~r~2",
"~r~3",
"~y~4",
"~g~5"
};
PHP код:
if (strcmp(cmdtext, "/contar", true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3000)
{
if(Count != 5)
{
SendClientMessage(playerid, COLOR_DBLUE, "**** Contador й iniciado!");
CountDown();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WARNING, "**** Contador jб estб ativado!");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD5,"Vocк nгo tem permissгo para usar esse comando!");
}
}
return 1;
}
PHP код:
public CountDown()
{
if (Count > 0)
{
GameTextForAll( CountText[Count-1], 2500, 5);
Count--;
SetTimer("CountDown", 1000, 0);
}
else
{
GameTextForAll("~g~GO!", 2500, 5);
Count = 5;
}
return 1;
}
Virar o carro
@EDIT2
PHP код:
if(strcmp(cmd, "/x", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1000)
{
new Float:X, Float:Y, Float:Z;
if(IsPlayerInAnyVehicle(playerid))
{
SetCameraBehindPlayer(playerid);
GetPlayerPos(playerid, X, Y, Z);
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
}
}
else
{
SendClientMessage(playerid, COLOR_WARNING, "Vocк nгo tem permissгo para usar esse comando.");
}
}
return 1;
}