[Ajuda] cmd:spawn
#6

pawn Код:
CMD:oi(playerid, params[])
{
     if(!strlen(params)) return SendClientMessage(playerid, -1, "Use /oi [id]");
     SendClientMessage(strval(params),  -1, "Oi");
     return 1;
}
Com if(isnull(params)) tambйm й funcional.

PHP код:
CMD:oi(playeridparams[])
{
    if(
isnull(params)) return SendClientMessage(playerid, -1"/oi [ID]");
    
SendClientMessage(strval(params),  -1"Oi");
    return 
1;

@EDIT
Este comando, seguindo a lуgica deve ser funcional.

PHP код:
CMD:spawn_player(playeridparams[]) {
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1"Vocк precisa ser administrador RCON");
    if(
isnull(params)) return SendClientMessage(playerid, -1"Uso: /spawn_player [ID]");
    
SendClientMessage(playerid, -1"Vocк spawnou o jogador.");
    
SendClientMessage(strval(params), "Vocк foi spawnado.");
    
SpawnPlayer(strval(params));
    return 
1;

Reply


Messages In This Thread
cmd:spawn - by MestreSmart - 27.02.2015, 19:04
Re: cmd:spawn - by MultiKill - 27.02.2015, 19:17
Re: cmd:spawn - by Whoo - 27.02.2015, 19:17
Re: cmd:spawn [respondido] - by MestreSmart - 27.02.2015, 19:21
Re: cmd:spawn [respondido] - by Whoo - 27.02.2015, 19:24
Re: cmd:spawn - by ipsLuan - 27.02.2015, 19:26
Re: cmd:spawn [respondido] - by MestreSmart - 27.02.2015, 19:28

Forum Jump:


Users browsing this thread: 2 Guest(s)