30.12.2015, 23:29
Try this:
I usually don't spoon feed code, but I've got a feeling that you won't know how to fix these errors even if I told you what to do. Look at the code above and tell me which parts you don't understand and I'll happily explain them to you.
PHP код:
CMD:commanderbateau(playerid, params[]) {
if(PlayerInfo[playerid][pFacleader] > 2 || PlayerInfo[playerid][pFacleader] > 3 || PlayerInfo[playerid][pFaclank] >= 8) {
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i ++) {
if(ControllingShip[i] == 1) {
return SendClientMessage(playerid, -1, "Le navire est actuellement dйtenu а commande par quelqu'un d'autre.");
}
}
Camera = CreateObject(0, 0, 0, 0, 0, 0, 0);
AttachCameraToObject(playerid, Camera);
AttachObjectToVehicle(Camera, PirateShip, 0, -35, 23, 0.0, 0.0, 0.0);
PutPlayerInVehicle(playerid, PirateShip, 0);
ControllingShip[playerid] = 1;
SendClientMessage(playerid, -1, "Tape /quiiterbateau ou appuie sur 'F' si tu vuew arrкter de commander ce navire.");
}
return 1;
}