06.10.2013, 04:07
apenas troque "pName" por outro nome.
pawn Код:
CMD:derby(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,625.6036,-2120.1682,8.6458);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 100.0);
new ipanema[MAX_PLAYER_NAME];
GetPlayerName(playerid, ipanema, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para a arena derby ! ( /derby )", ipanema);
SendClientMessageToAll(COR_LARANJA, string);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
}
else
{
SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
}
return 1;
}