08.04.2012, 12:49
if(!strcmp(cmdtext, "/drink", true))
{
ApplyAnimation(playerid,"BAR","dnk_stndM_loop",4.1 ,1,1,1,1,1,1);
}
if(!strcmp(cmdtext, "/pee", true))
{
ApplyAnimation(playerid,"PAULNMAC","Piss_in",4.1,1 ,1,1,1,1,1);
return 1;
// Returning 1 informs the server that the command has been processed.
// OnPlayerCommandText won't be called in other scripts.
}
return 0;
// Returning 0 informs the server that the command hasn't been processed by this script.
// OnPlayerCommandText will be called in other scripts until one returns 1.
// If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.
}
example /me looks down
unknown command (but still shows /me) but it shows unknown command.
{
ApplyAnimation(playerid,"BAR","dnk_stndM_loop",4.1 ,1,1,1,1,1,1);
}
if(!strcmp(cmdtext, "/pee", true))
{
ApplyAnimation(playerid,"PAULNMAC","Piss_in",4.1,1 ,1,1,1,1,1);
return 1;
// Returning 1 informs the server that the command has been processed.
// OnPlayerCommandText won't be called in other scripts.
}
return 0;
// Returning 0 informs the server that the command hasn't been processed by this script.
// OnPlayerCommandText will be called in other scripts until one returns 1.
// If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.
}
example /me looks down
unknown command (but still shows /me) but it shows unknown command.