13.09.2010, 12:32
Hi
Iґve a big Problem with my /attach command. Sometimes i can Attach Cars, and sometimes not. I have tried everything, but i couldnt fix it.
Here my Command:
MFG, Robdeflop®
Sry for my bad English (Iґm German)
Iґve a big Problem with my /attach command. Sometimes i can Attach Cars, and sometimes not. I have tried everything, but i couldnt fix it.
Here my Command:
pawn Код:
if(strcmp(cmd, "/attach", true) == 0)
{
if(Meschaniker[playerid] == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
{
DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
AttachTrailerToVehicle(GetNearestCar(playerid, 7), GetPlayerVehicleID(playerid));
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du musst in einen Schlepper!");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du musst zuerst in ein Auto!");
}
return 1;
}
.
.
.
Sry for my bad English (Iґm German)