[Ajuda] /reparar
#4

Em public OnPlayerCommandText

pawn Код:
if (!strcmp("/conserto", cmdtext))
{
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0x33AA33AA, "[FFC] Seu Veiculo Foi Reparado Com Sucesso!");
PlayerPlaySound(playerid,1133, 0.0, 0.0, 0.0);
}
else SendClientMessage(playerid, 0xAA3333AA, "[FFC] Voce nao estб no veiculo!");
return 1;
}
em public OnPlayerKeyStateChange

pawn Код:
if(newkeys == 512 && IsPlayerInAnyVehicle(playerid))
     {
           OnPlayerCommandText(playerid, "/conserto");
     }
Reply


Messages In This Thread
[Ajuda] /reparar - by Shakal_XD - 12.02.2012, 23:50
Re: [Ajuda] /reparar - by Lucas_Alemao - 12.02.2012, 23:57
Re: [Ajuda] /reparar - by [NC]BlackSky - 13.02.2012, 11:27
Re: [Ajuda] /reparar - by [FFC]Twister - 13.02.2012, 12:17
Re: [Ajuda] /reparar - by [NC]BlackSky - 13.02.2012, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)