switch(dmid[playerid]){ case 0: { SetPlayerPos(playerid,1008.8140,-1195.5255,54.9063); SetPlayerFacingAngle(playerid,90.0); ResetPlayerWeapons(playerid); SetPlayerArmour(playerid,0); GivePlayerWeapon(playerid,38,8000); SetPlayerColor(playerid, 0xABCDEF01); SetPlayerVirtualWorld(playerid,dmid[playerid]);}
switch(dmid[playerid]) { case 0: { SetPlayerPos(playerid,1008.8140,-1195.5255,54.9063); SetPlayerFacingAngle(playerid,90.0); ResetPlayerWeapons(playerid); SetPlayerArmour(playerid,0); GivePlayerWeapon(playerid,38,8000); SetPlayerColor(playerid, 0xABCDEF01); SetPlayerVirtualWorld(playerid,dmid[playerid]); }switch(dmid[playerid]) { case 1: { SetPlayerPos(playerid,1008.8140,-1195.5255,54.9063);//másik teleport SetPlayerFacingAngle(playerid,90.0); ResetPlayerWeapons(playerid); SetPlayerArmour(playerid,0); GivePlayerWeapon(playerid,38,8000); SetPlayerColor(playerid, 0xABCDEF01); SetPlayerVirtualWorld(playerid,dmid[playerid]); }switch(dmid[playerid]) { case 2: { SetPlayerPos(playerid,1008.8140,-1195.5255,54.9063);//másik teleport SetPlayerFacingAngle(playerid,90.0); ResetPlayerWeapons(playerid); SetPlayerArmour(playerid,0); GivePlayerWeapon(playerid,38,8000); SetPlayerColor(playerid, 0xABCDEF01); SetPlayerVirtualWorld(playerid,dmid[playerid]); }
switch(dmid[playerid]) { case 0: { SetPlayerPos(playerid,1008.8140,-1195.5255,54.9063); SetPlayerFacingAngle(playerid,90.0); ResetPlayerWeapons(playerid); SetPlayerArmour(playerid,0); GivePlayerWeapon(playerid,38,8000); SetPlayerColor(playerid, 0xABCDEF01); SetPlayerVirtualWorld(playerid,dmid[playerid]); } case 1: { SetPlayerPos(playerid,1008.8140,-1195.5255,54.9063);//másik teleport SetPlayerFacingAngle(playerid,90.0); ResetPlayerWeapons(playerid); SetPlayerArmour(playerid,0); GivePlayerWeapon(playerid,38,8000); SetPlayerColor(playerid, 0xABCDEF01); SetPlayerVirtualWorld(playerid,dmid[playerid]); } case 2: { SetPlayerPos(playerid,1008.8140,-1195.5255,54.9063);//másik teleport SetPlayerFacingAngle(playerid,90.0); ResetPlayerWeapons(playerid); SetPlayerArmour(playerid,0); GivePlayerWeapon(playerid,38,8000); SetPlayerColor(playerid, 0xABCDEF01); SetPlayerVirtualWorld(playerid,dmid[playerid]); }
new Float:teleneve[4][3] = { //teleneve [4]Ha 4 spawn hely van.Értelemszerûen ha pl 5 spawn hely kell [5][3]{ spawnhely },{ spawnhely },{ spawnhely },{ spawnhely }//az utolsóhoz nem kell ,};public SetPlayerteleneve(playerid){new rand = random(sizeof(teleneve));SetPlayerPos(playerid, teleneve[rand][0], teleneve[rand][1], teleneve[rand][2]);return 1;}És végül egy példa parancsif (strcmp(cmdtext, \"/sajatdm\",true)==0){ ResetPlayerWeapons(playerid); SetPlayerteleneve(playerid); GivePlayerWeapon(playerid, 34, 9999999); SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"DM: %s elteleportált ide (/sajatdm)\", pName); SendClientMessageToAll(COLOR_YELLOW, string); return 1;}