10.10.2014, 08:32
(
Последний раз редактировалось Justinclaveria123; 10.10.2014 в 09:05.
Причина: forgot to add more title
)
Guys , how do i can make this TogglePLayerControlable to a players , example if im admin im gonna freeze player and unfreeze
the problem is when i type /freeze i am freezing . so how to make that like this command /freeze [playerid] [reason]
and /unfreeze [playerid] .
i don't want with timer.
please help me and i will give REP++
Quote:
if(strcmp(cmdtext, "/freeze", true) == 0) if(IsPlayerAdmin(playerid)) { TogglePlayerControllable(playerid,0); return 1; } // Unfreezes a player when they types /unfreezeme if(strcmp(cmdtext, "/unfreeze", true) == 0) if(IsPlayerAdmin(playerid)) { TogglePlayerControllable(playerid,1); return 1; } |
and /unfreeze [playerid] .
i don't want with timer.
please help me and i will give REP++