12.09.2018, 22:19
I've a doubt which is freaking my mind since this morning.
Imagine i have a /pizza command which works only for pizza boys.
Inside this command i have a params which is called "start" which starts pizza boy job (So player should type /pizza start).
I've added the pizzaboy check (to check if who typed the /pizza command is a pizza boy or no), before the "start" params.
So:
My doubt is, will this check work even with /pizza start? Or is limited to /pizza only?
Ex: I'm not a pizzaboy but if i do /pizza start, will i start the pizza boy job?
Imagine i have a /pizza command which works only for pizza boys.
Inside this command i have a params which is called "start" which starts pizza boy job (So player should type /pizza start).
I've added the pizzaboy check (to check if who typed the /pizza command is a pizza boy or no), before the "start" params.
So:
pawn Код:
CMD:pizza(playerid, params[])
(
if(player[playerid][Job] != pizzaboy) return you're not a pizza boy bla bla
if(!strcmp(option, "start"))
{
//Start pizza job
}
return 1;
)
Ex: I'm not a pizzaboy but if i do /pizza start, will i start the pizza boy job?