Du hast es so Gemacht:
PAWN Quelltext
1
2
3
4
5
6
7
ocmd:gotothecar(playerid,params[]){
if(!isPlayerAnAdmin(playerid,2))return SendClientMessage(playerid,ROT,"AdminRang zu niedrig.");
new Float:X, Float:Y, Float:Z,vid;
if(sscanf(params,"d",vid))return SendClientMessage(playerid,Grau,"Fehler: /gotothecar [ID]");
//GetPlayerPos(vid,X,Y,Z);
SetPlayerPos(vid,X,Y,Z);
return 1; }
DAs muss aber so sein!
PAWN Quelltext
1
2
3
4
5
6
7
ocmd:gotothecar(playerid,params[]){
if(!isPlayerAnAdmin(playerid,2))return SendClientMessage(playerid,ROT,"AdminRang zu niedrig.");
new Float:X, Float:Y, Float:Z,vid;
if(sscanf(params,"d",vid))return SendClientMessage(playerid,Grau,"Fehler: /gotothecar [ID]");
GetPlayerPos(vid,X,Y,Z);
SetPlayerPos(vid,X,Y,Z);
return 1; }