Command works only for 1 player. WTF?
#1

I have a command that when player types /piss it says "Player pisses on player". When other player types piss it not says "player pisses on player" wtf? When other player types /piss, only the animation appeal, not the format message.

pawn Код:
dcmd_piss(playerid, params[]){
    #pragma unused params
    SetPlayerSpecialAction(i, SPECIAL_ACTION_PISSING);
    new Float: POS[3];
    new player1, playername[MAX_PLAYER_NAME], pissername[MAX_PLAYER_NAME];
    GetPlayerPos(player1, POS[0], POS[1], POS[2]);
    if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid){
       if(IsPlayerInRange(player1, 2, 2, POS[0], POS[1], POS[2])){
          GetPlayerName(player1, playername, sizeof(playername));
          GetPlayerName(playerid,pissername,sizeof(pissername));
          new stringS[100];
          format(stringS,sizeof(stringS),"* %s pisses on %s.",pissername,playername);
          SendClientMessageToAll(COLOR_PINK, stringS);
       }
    }
    return 1;
}
Reply


Messages In This Thread
Command works only for 1 player. WTF? - by ZamaXor - 05.11.2010, 18:00
Re: Command works only for 1 player. WTF? - by The_Moddler - 05.11.2010, 18:02
Re: Command works only for 1 player. WTF? - by ZamaXor - 05.11.2010, 18:05
Re: Command works only for 1 player. WTF? - by ZamaXor - 05.11.2010, 18:45
Re: Command works only for 1 player. WTF? - by MadeMan - 05.11.2010, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)