public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/supmobil", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,16,DIALOG_STYLE_LIST,"Ad min SupMobil Spawner","Comet\nTug\nQuad","Spawnen","Cancel"); return 1; } if (strcmp("/slock", cmdtext, true, 10) == 0) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == SupMobil[playerid]) { for(new i=0; i < MAX_PLAYERS; i++) { if(i == playerid) continue; SetVehicleParamsForPlayer(SupMobil[playerid],i,0,1); } SendClientMessage(playerid,COLOR_YELLOW,"Your SupMobil Has Been Locked!"); } return 1; } if (strcmp("/dsupmobi", cmdtext, true, 10) == 0) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == SupMobil[playerid]) { new currentveh; currentveh = SupMobil[playerid]; DestroyVehicle(currentveh); SendClientMessage(playerid,-1,"You've Successfully Destroyed This SupMobil"); } return 1; } return 0; } |