[POMOC]/SLAP

Započeo [LG]Tonny, Januar 03, 2010, 11:20:04 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

jel mi moze neko napravit?da imaju admini /slap,treba mi za provjeravanje citera!!

_MaX_PaynE_

Citat: BOOM poslato Januar 03, 2010, 11:20:04 PRE PODNE
jel mi moze neko napravit?da imaju admini /slap,treba mi za provjeravanje citera!!

if(strcmp(cmd, "/slap", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Pisi: /slap [id igraca/Dio imena]");
return 1;
}
new playa;
new Float:shealth;
new Float:slx, Float:sly, Float:slz;
if(IsStringAName(tmp))
{
playa = GetPlayerID(tmp);
}
else
{
playa = strval(tmp);
}
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=1)
{
GetPlayerHealth(playa, shealth);
SetPlayerHealth(playa, shealth-5);
GetPlayerPos(playa, slx, sly, slz);
SetPlayerPos(playa, slx, sly, slz+5);
PlaySoundAll(playa, 1130, slx, sly, slz+5);
printf("ArenaAdmin: %s slapped %s",sendername,  giveplayer);
format(string, sizeof(string), "Admin: %s was slapped by %s",giveplayer ,sendername);
SendClientMessageToAll(COLOR_ORANGERED, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   nisi ovlasten da koristis tu komandu!");
}
return 1;

_MaX_PaynE_

Citat: CroCommunitY poslato Januar 03, 2010, 12:11:32 POSLE PODNE
Jel to sam nisi mogo izvadit iz GM-a i fino prevest?xD
staces oce sve na gotovo........