Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:podnies(playerid, params[])
- {+
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 219.150939, 1831.369873, 6.564657))
- {
- SendClientMessage(playerid, 0xFFFFFFFF, "Nie masz w pobliżu żadnych rzeczy do podniesienia!");
- return 1;
- }
- if(GetPVarInt(playerid, "samp_PackTime") > gettime())
- {
- SendClientMessage(playerid, 0xFFFFFFFF, "Z paczki możesz skorzystać tylko raz na 20 minut.");
- return 1;
- }
- new string[128], name[30];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{F5DC0B}Gracz {0000FF}%s{F5DC0B} odnalazł jedną z paczek broni ! {F5DC0B}({0000FF}UWAGA !{F5DC0B}) ", name);
- SendClientMessageToAll(-1, string);
- SetPVarInt(playerid, "samp_PackTime", (20 * 60) + gettime());
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement