if(strcmp(cmd, "/lic", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1338) { SendClientMessage(playerid, COLOR_GRAD2, " You are not authorized to use this command!"); return 1; } 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), "%s"); SetVehicleToRespawn(GetPlayerVehicleID(playerid)); new str[256]; format(str, 256, "You changed your plate to %s!", tmp); SendClientMessage(playerid, COLOR, str); } } return 1; }