26.09.2013, 16:19
Hello!
I made freeze CMD but when I am using it like /freeze <playerid>
so I freeze my brother doing, /freeze 1
But the Client Message is showing to me that MAFIA_WARS has freeze you instead of being showed to him.
I want that, Client Message should be shown to him (or that player whom I freeze).
My freeze CMD:
I made freeze CMD but when I am using it like /freeze <playerid>
so I freeze my brother doing, /freeze 1
But the Client Message is showing to me that MAFIA_WARS has freeze you instead of being showed to him.
I want that, Client Message should be shown to him (or that player whom I freeze).
My freeze CMD:
pawn Код:
CMD:freeze(playerid,params[])
{
new id, targetid;
new PlayerName[24], str_[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(pInfo[playerid][pAdminLevel]> 1 ) return 0;
if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED1,"[ ! ] USAGE: /freeze [playerid]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"[ ! ] Invalid Player ID");
format(str_, sizeof(str_), "[ ! ] %s has Freeze you !", PlayerName);
SendClientMessage(targetid, COLOR_RED1, str_);
TogglePlayerControllable(id,0);
return 1;
}