27.12.2010, 10:40
Quote:
I think this happens because in the end of OnPlayerCommandText you have return 0; and in main gamemode return 1;
|
pawn Код:
dcmd_v(playerid,params[])
{
Blabla ...
format(string, sizeof(string), "--> %s [Model ID: %d | Colours: %d,%d] has been spawned.", VehicleNames[car-400], car, colour1, colour2);
return SendClientMessage(playerid, WHITE, string);
}
pawn Код:
if(strcmp(cmdtext,"/mycommand",true) == 0)
{
//Do something here.
return 1;
}