05.02.2013, 01:57
Pra que vocк usa 256 caracteres apenas para formatar um nome ?
pawn Код:
if(strcmp(cmdtext, "/sf", true) == 0)
{
GameTextForPlayer(playerid,"~w~Bem Vindo a ~n~~r~San Fierro",5000,5);
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
new string2[86], string[MAX_PLAYER_NAME];
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,-1498.8904,799.6949,7.1875);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
GetPlayerName(playerid, string, sizeof(string));
format(string2, 86, "[ ThuG Info ] %s foi Para san fierro (/sf)", string);
SendClientMessageToAll(0x88FF9FAA, string2);
SetPlayerInterior(playerid,0);
}
else
{
new string2[86], string[MAX_PLAYER_NAME];
GetPlayerName(playerid, string, sizeof(string));
format(string2, 86, "[ ThuG Info ] %s foi Para san fierro (/sf)", string);
SendClientMessageToAll(0x88FF9FAA, string2);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1498.8904,799.6949,7.1875);SetPlayerFacingAngle(playerid,179.0);
}
return 1;
}