Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/kepure", true))
- {
- SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
- return SendClientMessage(playerid, 0x00FF00FF, "Kalėdų kepurė uždėta");
- }
- if(!strcmp(cmdtext, "/nuimtikepure", true))
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, 3))
- {
- RemovePlayerAttachedObject(playerid, 3);
- SendClientMessage(playerid, 0x00FF00FF, "Kalėdų kepurė nuimta");
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment