Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMAND:sekti(playerid, params[])
- {
- if(playerDB[playerid][specialybe] != 1 && playerDB[playerid][specialybe] != 10) return 0;
- new giveplayerid, Float: P_Pos[3], String[216];
- if(!playerDB[playerid][uniformd]) return SendClientMessage(playerid, -1, ""COL_ERROR"[KLAIDA]: {ffffff}Jus esate be darbinių drabužių!");
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, -1, ""COL_USAGE"[NAUDOJIMAS]: "COL_CMD"/sekti <vardas_pavardė/id>");
- if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, ""COL_ERROR"[KLAIDA]: {ffffff}Tokio žaidėjo nėra!");
- if(SekamasZaidejas[playerid] != -1)
- {
- SekamasZaidejas[playerid] = -1;
- DisablePlayerCheckpointEx(playerid, 21);
- SendClientMessage(playerid, -1, ""COL_INFO"[DARBAS]: {ffffff}Sekimas atšauktas!");
- return 1;
- }
- GetPlayerPos(giveplayerid, P_Pos[0], P_Pos[1], P_Pos[2]);
- SetPlayerCheckpointEx(playerid, 21, P_Pos[0], P_Pos[1], P_Pos[2], 2);
- SekamasZaidejas[playerid] = giveplayerid;
- switch(playerDB[playerid][specialybe])
- {
- case 1:
- {
- format(String, sizeof(String), ""COL_INFO"[RACIJA] {ff0000}%s: {ffffff}Pradėjau sekti žaidėją {ff0000}%s{ffffff}.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendMessageToCops(-1, String);
- }
- case 10:
- {
- format(String, sizeof(String), ""COL_INFO"[RACIJA] {ff0000}%s: {ffffff}Pradėjau sekti žaidėją {ff0000}%s{ffffff}.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendMessageToSwatams(-1, String);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement