if(strcmp(cmd, "/lic", true) == 0) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /lic [Name]"); } if(IsPlayerInAnyVehicle(playerid) == 1) { SetVehicleNumberPlate(GetPlayerVehicleID(playerid), result); SetVehicleToRespawn(GetPlayerVehicleID(playerid)); new str[256]; format(str, 256, "You changed your plate to %s!", result); SendClientMessage(playerid, COLOR, str); } return 1; }