public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(\"/dm\", cmdtext, true) == 0){ new Pveh; Pveh = GetPlayerVehicleID(playerid); SetPlayerPos(playerid, 3763.4041 ,-1055.2611 ,24.9338); SetVehiclePos(Pveh,3763.4041 ,-1055.2611 ,24.9338); SetPlayerFacingAngle(playerid, 0); SetVehicleZAngle(Pveh, 0); SetPlayerInterior(playerid, 0); LinkVehicleToInterior(Pveh, 0); SetPlayerVirtualWorld(playerid, 0); SetVehicleVirtualWorld(Pveh, 0); SendClientMessage(playerid, 0x0000FFFF, \"Elteleportaltal a DM Zonaba!\"); SendClientMessage(playerid, COLOR_RED, \"DM Jelentése: Deathmatch, csak itt ölheted meg a másik playert!\"); SendClientMessage(playerid, 0x0000FFFF, \"A Fegyvereket megkaptad!\"); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 31, 500); GivePlayerWeapon(playerid, 32, 500); return 1;}
if(strcmp(\"/dm\", cmdtext, true) && GetPVarInt(playerid,\"DM\") == 1){ SetPVarInt(playerid,\"DM\",0); ResetPlayerWeapons(playerid); return 1;}
public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(\"/dm\", cmdtext, true) == 0){ new Pveh; Pveh = GetPlayerVehicleID(playerid); SetPlayerPos(playerid, 3763.4041 ,-1055.2611 ,24.9338); SetVehiclePos(Pveh,3763.4041 ,-1055.2611 ,24.9338); SetPlayerFacingAngle(playerid, 0); SetVehicleZAngle(Pveh, 0); SetPlayerInterior(playerid, 0); LinkVehicleToInterior(Pveh, 0); SetPlayerVirtualWorld(playerid, 0); SetVehicleVirtualWorld(Pveh, 0); SendClientMessage(playerid, 0x0000FFFF, \"Elteleportaltal a DM Zonaba!\"); SendClientMessage(playerid, COLOR_RED, \"DM Jelentése: Deathmatch, csak itt ölheted meg a másik playert!\"); SendClientMessage(playerid, 0x0000FFFF, \"A Fegyvereket megkaptad!\"); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 31, 500); GivePlayerWeapon(playerid, 32, 500); SetPVarInt(playerid,\"DM\",1); return 1;}
Köszi megpróbálom és elmagyarázod please ez mi?