Advertisement
Guest User

fasdasdas

a guest
Sep 20th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. CMD:time(playerid, params[])
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, "Nu poti folosi nicio comanda pentru ca nu esti logat.");
  4.  
  5. new Float:Z;
  6. GetPlayerVelocity(playerid, Z, Z, Z);
  7. if(floatcmp(0.0, Z) != 0)
  8. {
  9. SS(playerid, COLOR_ERROR, "You can't use any animations while falling.","Nu poti folosi aceasta comanda in timp ce cazi.");
  10. return 0;
  11. }
  12.  
  13. new sendername[25],string[256];
  14. new hour,minute,second;
  15. gettime(hour,minute,second);
  16. format(string, sizeof(string), "The current time is %d:%s%d (%d seconds).", hour, (minute < 10) ? ("0") : (""), minute, second);
  17. SendClientMessage(playerid, COLOR_WHITE, string);
  18. format(string, sizeof(string), "Connected for %d seconds.", PlayerInfo[playerid][pPayDay]);
  19. SendClientMessage(playerid, COLOR_WHITE, string);
  20. GetPlayerName(playerid, sendername, sizeof(sendername));
  21. format(string, sizeof(string), "* %s raises her hand and looks down at her watch.", sendername);
  22. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  23. ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,0,0,0,0);
  24. return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement