if(strcmp(cmdtext, "/golf", true) == 0)
{
if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n-Sorry But you can't Teleport to another area while in a dm. Type /kill to leave the DM.","OK","KILL ME");
DMZone[playerid] = 1;
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 31, 1000);
GivePlayerWeapon(playerid, 32, 1000);
GameTextForPlayer(playerid, "~y~golf", 4000, 6);
new rand = random(sizeof(RandomPlayerSpawns));
SetPlayerPos(playerid, RandomPlayerSpawnsGolf[rand][0], RandomPlayerSpawnsGolf[rand][1], RandomPlayerSpawnsGolf[rand][2]);
new name[MAX_PLAYER_NAME], string[100];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[TELEPORT] %s Telepotiert sich zu Golf Deathmatch (/golf)", name );
SendClientMessageToAll(COLOR_TELEPORT, string);
return 1;
}
Hallo community ich wollte fragen wie ich anstat das: SetPlayerPos(playerid, RandomPlayerSpawnsGolf[rand][0],
RandomPlayerSpawnsGolf[rand][1], sowas: AddPlayerClass(0,2611.3193,-1763.8317,1.6406,290.6034,0,0,0,0,0,0); // GS_DM Machen kann pls help me
MFG