public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp("/pizzajob", cmdtext, true) == 0)
{
SendClientMessage(playerid,COLOR_RED, "HINT: Follow the marker on the map to get your pizzaboy job !");
SetPlayerCheckpoint(playerid, 2083.217, 2223.526, 11.023 );
return 0;
}
if(strcmp("/towtruckjob", cmdtext, true) == 0)
{
SendClientMessage(playerid,COLOR_RED, "HINT: Follow the marker on the map to get your Tow truck driver job !");
SetPlayerCheckpoint(playerid, 1942.5308, 2163.4653, 10.8203 );
return 1;
}
return 0;
}

public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp("/pizzajob", cmdtext, true) == 0)
{
SendClientMessage(playerid,COLOR_RED, "HINT: Follow the marker on the map to get your pizzaboy job !");
SetPlayerCheckpoint(playerid, 2083.217, 2223.526, 11.023 );
return 1;
}
else if(strcmp("/towtruckjob", cmdtext, true) == 0)
{
SendClientMessage(playerid,COLOR_RED, "HINT: Follow the marker on the map to get your Tow truck driver job !");
SetPlayerCheckpoint(playerid, 1942.5308, 2163.4653, 10.8203 );
return 1;
}
return 0;
}
if (strcmp("/pizzaboy", cmdtext, true)==0) return 1;
if (strcmp("/towtruckjob", cmdtext, true)==0) return 1;
|
Originally Posted by yezizhu
Hmmm, have no error in OnPlayerCommandText.
But I've noticed that doesn't have "towtruckjob" in it. Are you sure you posted right code in pastebin? |
|
Originally Posted by Annihalation
if it is a filterscript, then that is why
if its a filterscript you need to go onto your Game Mode file and put in where it says OnPlayerCommandText Код:
if (strcmp("/pizzaboy", cmdtext, true)==0) return 1;
if (strcmp("/towtruckjob", cmdtext, true)==0) return 1;
|
