habs jetzt geschaft
new IsPlayerInDm[MAX_PLAYERS];
OnPlayerSpawn
if(IsPlayerInDm[playerid] == 1)
{
SetPlayerPos(playerid,2726.8276,-1750.7834,53.0986);//wen er im DM is
}
else
{
SetPlayerPos(playerid, 1541.7549,-1366.0084,329.7969);//Falls er nicht im DM is
}
Dan den Command
if(strcmp(cmdtext,"/dm",true ))
{
if(IsPlayerInDm[playerid] == 1)
{
SetPlayerPos(playerid,2726.8276,-1750.7834,53.0986);
GivePlayerWeapon(playerid,29,500);
}
}
Lg Cr3ve