Freezing with Reason
#1

Hi guys im making a script to freeze someone, with the Name and ID: Decysen (1) and then reason: Your reason here. Can somebody help me with this?

dcmd_freeze(playerid, params[])
{
if(IsPlayerAdmin(playerid)) {
new string[256];
new Player = strval(params);
new Name[MAX_PLAYER_NAME+1];
GetPlayerName(Player, Name, sizeof(Name));

format(string, sizeof(string), "Frozen: %s (%d) Reason:", Name, GetPlayerID(Name));
SendClientMessageToAll(COLOR_PINK, string);
TogglePlayerControllable(Player, false);
}
return 1;
}

Maybe somebody can make the whole code for me :P
Ty!
Reply


Messages In This Thread
Freezing with Reason - by Robbin237 - 09.02.2009, 14:06
Re: Freezing with Reason - by ShizNator - 09.02.2009, 14:32
Re: Freezing with Reason - by Robbin237 - 09.02.2009, 14:58
Re: Freezing with Reason - by ShizNator - 10.02.2009, 00:14
Re: Freezing with Reason - by Backwardsman97 - 10.02.2009, 02:07
Re: Freezing with Reason - by 1337pr0 - 10.02.2009, 03:32
Re: Freezing with Reason - by Backwardsman97 - 10.02.2009, 03:41
Re: Freezing with Reason - by ShizNator - 10.02.2009, 11:19
Re: Freezing with Reason - by Robbin237 - 10.02.2009, 13:56
Re: Freezing with Reason - by ShizNator - 10.02.2009, 13:59

Forum Jump:


Users browsing this thread: 1 Guest(s)