Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:time(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, "Nu poti folosi nicio comanda pentru ca nu esti logat.");
- new Float:Z;
- GetPlayerVelocity(playerid, Z, Z, Z);
- if(floatcmp(0.0, Z) != 0)
- {
- SS(playerid, COLOR_ERROR, "You can't use any animations while falling.","Nu poti folosi aceasta comanda in timp ce cazi.");
- return 0;
- }
- new sendername[25],string[256];
- new hour,minute,second;
- gettime(hour,minute,second);
- format(string, sizeof(string), "The current time is %d:%s%d (%d seconds).", hour, (minute < 10) ? ("0") : (""), minute, second);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Connected for %d seconds.", PlayerInfo[playerid][pPayDay]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s raises her hand and looks down at her watch.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,0,0,0,0);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement