20.09.2011, 13:52
pawn Код:
topo do GM
new Tstring[ 125];
---------------------------------------
dcmd_tunar(playerid, params[])
{
#pragma unused params
---------------------
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "[ ERROR ]{FFFFFF} Vocк Nгo Esta Em Um Veнculo!!");
new VehicleID = GetPlayerVehicleID(playerid);
RepairVehicle(VehicleID);
AddVehicleComponent(GetPlayerVehicleID(playerid),1010); //nitro
PlayerPlaySound(playerid,1133,0.0,0.0,0.0); //sound
format( Tstring, sizeof Tstring , "%s {FFFFFF}Reparou Seu Veнculo [ {FFFF00}/r {FFFFFF}]", NomePlayer(playerid) );
SendClientMessageToAll( 0xFFFF00AA, Tstring );
--------------------
return true;
}
---------------------------------
Final Do GM
stock NomePlayer(playerid)
{
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
return nome;
}