SA-MP Forums Archive
Busco bin. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Busco bin. (/showthread.php?tid=144387)



Busco bin. - Dan_Sykes - 27.04.2010

el bin de /slap para agregarlo al FS de admin que uso que no lo tiene.
no importa el que sea, si estб inglйs lo traduzo.


Re: Busco bin. - Carlos_Martinez - 27.04.2010

buscate eso en algun GM o busca

Aca


Re: Busco bin. - KPawnX - 27.04.2010

Код:
	if(strcmp(cmd, "/slap", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USO: /slap [ID/NOMBRE]");
				return 1;
			}
			new playa;
			new Float:shealth;
			new Float:slx, Float:sly, Float:slz;
			playa = ReturnUser(tmp);
			if (PlayerInfo[playerid][pAdmin] >=1)
			{
			  if(IsPlayerConnected(playa))
			  {
			    if(playa != INVALID_PLAYER_ID)
			    {
				    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						GetPlayerHealth(playa, shealth);
						SetPlayerHealth(playa, shealth-5);
						GetPlayerPos(playa, slx, sly, slz);
						SetPlayerPos(playa, slx, sly, slz+5);
						PlayerPlaySound(playa, 1130, slx, sly, slz+5);
						printf("AdmCmd: %s golpeado %s",sendername, giveplayer);
						format(string, sizeof(string), "AdmCmd: %s fue golpeado por %s",giveplayer ,sendername);
						ABroadCast(COLOR_NEWS,string,1);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "No puedes usar este comando.");
			}
		}
		return 1;
	}
Editalo como quieras...