15.10.2013, 10:42
It's not working. Whatever I say I still just get "Alright, here's the drugs."
pawn Код:
public OnPlayerText(playerid, text[])
{
if(IsKnocking[playerid])
{
if(strcmp(text,"drugs"))
{
SCM(playerid, -1, "Alright, here's the drugs.");
TogglePlayerControllable(playerid,1);
}
else if(strcmp(text,"weapons"))
{
SCM(playerid, -1, "Alright, here's the weapons.");
TogglePlayerControllable(playerid,1);
}
else
{
SCM(playerid, -1, "You must type either '/knock drugs' or '/knock weapons'.");
}
IsKnocking[playerid]--;
}
return 1;
}