16.08.2011, 04:53
Quote:
This does not support on Sscanf.
Try using strmp. pawn Код:
|
Strcmp= Slow
Yes, OnPlayerCommandText is removed. I changed it so the code looks like this.
pawn Код:
CMD:surrender(playerid,params[])
{
if(PlayerInfo[playerid][pSurrender] ==0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
ApplyAnimation(playerid,"ROB_BANK","SHP_HandsUp_Scr",4.1,1,1,1,1,1,1);
TogglePlayerControllable(playerid,0);
PlayerInfo[playerid][pSurrender] = 1;
}
}
else if(PlayerInfo[playerid][pSurrender] ==1)
{
ClearAnimations(playerid);
PlayerInfo[playerid][pSurrender] = 0;
TogglePlayerControllable(playerid,1);
}
return 1;
}
But it still dosnt work