22.04.2009, 18:49
haha that guy gave me the idea to get armour from the police vans :P here's wut i did:
but i was really looking for a /bring or /goto that would move a vehicle because i tried but failed :/ :S i'll have to mess with it some more 
and
cheers to the best mod on the net! *clink*
*chugs*
Код:
if(strcmp(cmd, "/getarmour", true) == 0) {
if(!IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid, COLOR_ERROR , "This command only works while inside a Police Van.");
return 1;
}
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid) && GetVehicleModel(vehicleid) != 427 ) {
SendClientMessage(playerid,COLOR_ERROR,"You can only get armour if you're inside a Police van");
return 1;
}
if(GetVehicleModel(vehicleid) == 427 && IsPlayerInAnyVehicle(playerid)) { //swatvan
new Float:armor;
GetPlayerArmour(playerid, armor);
SetPlayerArmour(playerid, 100-armor); // Take out the -armor to make it so they get +100 each time they do it.
SendClientMessage(playerid, COLOR_DEADCONNECT , "|_S.A. Police Van_|");
SendClientMessage(playerid, COLOR_ROYALBLUE , "You grabbed some armor!");
return 1;
}
return 1;
}

and
cheers to the best mod on the net! *clink*
*chugs*

