Hier mein Code:
ocmd:fesseln(playerid,params[])
{
new pID;
if(pID==playerid)
{
SendClientMessage(playerid,Rot,"Du kannst dich nicht selber fesseln");
}
else
{
new vehicle;
new vehicle2;
vehicle = GetPlayerVehicleID(playerid);
vehicle2 = GetPlayerVehicleID(playerid);
if(vehicle == vehicle2)
{
if(sscanf(params,"d",pID))return SendClientMessage(playerid,Rot,"/fesseln (ID)");
TogglePlayerControllable(pID,0);
new string[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"Du wurdest von %s Gefesselt", name);
SendClientMessage(pID,Gelb,string);
}
}
return 1;
}
Keine errors oder Warnings...
kann jemand einen code schicken wie der richtig geht?