Simple problem I Cant seem to Pick out -_-
#1

Yo People, Whenever I Do this command, It does it to another Person, I Cannot do it To myself
But I want it to Affect me and OTHER Players.
Код:
		if (strcmp("/hammer", cmdtext, true, 5) == 0)
	{
	if(Admin[playerid] == 1)
	{
     new tmp[30];
	 new sendername[24];
     new otherplayer = strval(tmp);
     if(IsPlayerConnected(otherplayer))
     {
          new str[128];
          new othername[24];
          GetPlayerName(playerid, sendername, sizeof(sendername));
          GetPlayerName(otherplayer, othername, sizeof(othername));
          format(str, sizeof(str), "%s Slapped %s With a Huge fucking Hammer.", sendername, othername);
          SendClientMessageToAll(0x33CCFFAA, str);
          format(str, sizeof(str), "%s Slapped you with a BanHammer", sendername); //1582 Pizza Box
          SendClientMessage(otherplayer,0x33CCFFAA,str);
		  Kick(otherplayer);
          return 1;
     }
     SendClientMessage(playerid,0xC2A2DAAA,"Invalid player");
     return 1;
	}
	}
Anyway, If you can pick out the problem Id REALLY appreciate it.
Sorry for my Messy coding XD
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)