06.02.2013, 05:23
pawn Код:
if(!strcmp(cmdtext, "/sf", true))
{
if(FloodInterval[playerid] == 1) return SendClientMessage(playerid, -1, "Aguarde 2 Segundos Para Falar");
FloodInterval[playerid] = 1;
FloodInterval[playerid] = gettime() + 2;
if(gettime() >= FloodInterval[playerid]) FloodInterval[playerid] = 0;
GameTextForPlayer(playerid,"~w~Bem Vindo a ~n~~r~San Fierro",5000,5);
new string[80], nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), -2133.6736, 917.6844, 79.8516);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
format(string, 80, "[ ThuG Info ] %s foi Para san fierro (/sf)", nome);
SendClientMessageToAll(0x88FF9FAA, string2);
}
else
{
format(string, 80, "[ ThuG Info ] %s foi Para san fierro (/sf)", nome);
SendClientMessageToAll(0x88FF9FAA, string);
SetPlayerPos(playerid, -2133.6736, 917.6844, 79.8516);
SetPlayerFacingAngle(playerid, 179.0);
}
return 1;
}