[Pedido] comando
#4

Um comando?

Claro!

pawn Код:
if(!strcmp("/stadium",cmdtext))
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
    {
        SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
    }
    return 1;
}
Nгo sei se funciona bem com isso:
https://sampwiki.blast.hk/wiki/Function:...erControllable

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     // Freezes a player when they types /freezeme
     if(strcmp(cmdtext, "/freezeme", true) == 0)
     {
          TogglePlayerControllable(playerid,0);
          return 1;
     }
     // Unfreezes a player when they types /unfreezeme
     if(strcmp(cmdtext, "/unfreezeme", true) == 0)
     {
          TogglePlayerControllable(playerid,1);
          return 1;
     }
     return 0;
}
Reply


Messages In This Thread
comando - by AssasinoLM - 06.02.2015, 03:31
Re: comando - by ZeZin - 06.02.2015, 07:40
Re: comando - by AssasinoLM - 06.02.2015, 08:38
Re: comando - by Gii - 06.02.2015, 08:46
Re: comando - by AssasinoLM - 06.02.2015, 09:07

Forum Jump:


Users browsing this thread: 1 Guest(s)