Ok ich habs selber erledigt.
Lösung:
Ok ich habs selber erledigt
new team=0;
public OnPlayerRequestClass(playerid, classid)
{
if(classid==0) {
team=0;
}
else {
team++;
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/base",true)==0) {
if(team==0) {
SetPlayerPos(playerid,294.8528,-1153.4613,80.9099);
}
else {
SetPlayerPos(playerid,1281.1893,-830.5210,83.1406);
}
return 1;
}
return 1;
}