13.03.2011, 15:02
Untested... Also this is without params, so you cannot get your own text, but you can change that.
pawn Код:
if (strcmp(cmdtext, "/setplate", true) == 0)
{
new vehicleid;//Since it's not defined under OnPlayerCommandText
vehicleid = GetPlayerVehicleID(playerid);//So that it actually gets the vehicleid
if(pInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid, COLOR, "You're not a VIP");//I am guessing you are using pInfo
SetVehicleNumberPlate(vehicleid, "Hi");//Setting the plate to "Hi"
return 1;
}