16.07.2015, 22:30
Hi, I'm trying to turn these commands /takecrate, /deploycrate. Into /crate take/deploy/others
I know it's something to do with sscanf maybe. I just can't put my finger on it. Would you use the params to check if thats the ending of the command they are typing?
I know it's something to do with sscanf maybe. I just can't put my finger on it. Would you use the params to check if thats the ending of the command they are typing?
Код:
COMMAND:crate(playerid, params[])
{
if(SpawnedIn[playerid] == 1 && LoggedIn[playerid] == 1)
{
if(params == "take")
{
}
if(params == "deploy")
{
}
}
return 1;
}


