Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:setvw(playerid, params[])
- {
- static
- userid,
- world;
- if (PlayerInfo[playerid][pAdmin] < 2)
- return SendClientMessage(playerid, COLOR_LIGHTRED, AUTH_ERROR);
- if (sscanf(params, "ud", userid, world))
- return SendClientMessage(playerid, COLOR_LIGHTRED, "Koristenje:{FFFFFF} /setvw [playerid / deo imena] [virtual world]");
- if (userid == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_LIGHTRED, "Igrac nije konektovan.");
- if(world == PlayerInfo[userid][pWorld])
- return SendClientMessage(playerid, COLOR_LIGHTRED, "Igrac vec ima taj virtual world.");
- if(userid == playerid)
- va_SendClientMessage(playerid, COLOR_YELLOW, "Postavio si sebi virtual world %d.", world);
- else
- {
- va_SendClientMessage(userid, COLOR_YELLOW, "%s vam je postavio virtual world %d.", ReturnName(playerid, 0), world);
- va_SendClientMessage(playerid, COLOR_YELLOW, "Igracu %s je postavljen virtual world %d.", ReturnName(userid, 0), world);
- }
- SetPlayerVirtualWorld(userid, world);
- PlayerInfo[userid][pWorld] = world;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement