09.06.2009, 20:41
i find it alot simpiler with Dcmd and sscanf so heres a dcmd/sscanf version of /tie:
pawn Код:
dcmd_Tie(playerid, params[])
{
new otherid;
if (sscanf(params, "d", otherid)) return SendClientMessage(playerid, ERROR_COLOR, "Usage: /Tie [playerid]");
if(gTeam[playerid] == 4)
{
TogglePlayerControllable(otherid, 0)
SendClientMessage(otherid, COLOR_YELLOW, You are now tied up");
}
return 1;
}