Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMAND:spd(playerid,params[])
- {
- if( specialybe[ playerid ] == POLICININKAS)
- if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid,COLOR_RED,"Turi būti mašinoje"); return 1; }
- if(!IsObjectAttached[playerid])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- AttachedObject[playerid][0] = CreateObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachedObject[playerid][1] = CreateObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- SetObjectMaterialText(AttachedObject[playerid][1], "Policija", 0, OBJECT_MATERIAL_SIZE_256x128, "BankGothic Md BT", 60, 1, COLOR_WHITE, 0, 1);
- SetObjectMaterialText(AttachedObject[playerid][0], "Policija", 0, OBJECT_MATERIAL_SIZE_256x128, "BankGothic Md BT", 60, 1, COLOR_WHITE, 0, 1);
- AttachObjectToVehicle(AttachedObject[playerid][0], vehicleid, 1.099999, 0.000000, -0.169999, 0.000000, 0.000000, 0.000000);
- AttachObjectToVehicle(AttachedObject[playerid][1], vehicleid, -1.099999, 0.000000, -0.169999, 0.000000, 0.000000, -179.895095);
- }
- else
- {
- DestroyObject(AttachedObject[playerid][0]);
- DestroyObject(AttachedObject[playerid][1]);
- IsObjectAttached[playerid] = false;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment