if(!strcmp(cmdtext, "/supmobil"))
{
if (PlayerInfo[playerid][pAdmin] >= 10)
{
new name[MAX_PLAYER_NAME], string[44]; // Falls error, auskommentieren (// entfernen)
new 3dlabel, Text3D:vehicle3Dtext;
new Float, Float:Y, Float:Z, car;
GetPlayerName(playerid, name, sizeof(name));
3dlabel = Create3DTextLabel( "SuporterMobil von: %s",name, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
GetPlayerPos(playerid, X, Y, Z);
car = AddStaticVehicle(457,X+1,Y,Z,270.8807,0,0);//Wenn´s nicht funktioniert dann: vehicle_id = CreateVehicle(457,X+1,Y,Z,270.8807,0,0);
Attach3DTextLabelToVehicle( 3dlabel, car, 0.0, 0.0, 2.0);
PutPlayerInVehicle(playerid, car, 0);
return 1;
}
}
was ist hier Falsch