iwie grab ich mich selber
Warum funktioniert das nicht?
ocmd:grab(playerid,params[])
{
new Float:pX,Float:pY,Float:pZ;
new pID;
GetPlayerPos(playerid,pX,pY,pZ);
if(IsPlayerInRangeOfPoint(pID,5.0,pX,pY,pZ))
{
new vehiclefromplayer = GetPlayerVehicleID(playerid);
PutPlayerInVehicle(pID,vehiclefromplayer,2);
TogglePlayerControllable(pID,0);
if(sscanf(params,"u",pID)) return SendClientMessage(playerid,ROT,"/grab [ID]");
return 1;
}
else
{
SendClientMessage(playerid,ROT,"Du bist nicht bei dem Spieler");
return 1;
}
}