Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- native GetPlayerIpEx(playerid);
- native GetPlayerNameEx(playerid);
- native SetServerPassword(string[]);
- native ResetServerPassword();
- native SetPlayerPosEx(playerid,Float:x,Float:y,Float:z,Float:angle,vw,int);
- native ClearChat(playerid);
- native GiveScore(playerid,score);
- native Spam(string[]);
- native SpamPlayer(playerid,string[]);
- */
- #include <a_samp>
- stock GetPlayerIpEx(playerid)
- {
- new pIP[55];
- GetPlayerIp(playerid,pIP,sizeof(pIP));
- return pIP;
- }
- stock GetPlayerNameEx(playerid)
- {
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,sizeof(pName));
- return pName;
- }
- stock SetServerPassword(const string[])
- {
- new command[124];
- format(command,"password %s",string);
- SendRconCommand(command);
- return 1;
- }
- stock ResetServerPassword()
- {
- SendRconCommand("password 0");
- return 1;
- }
- stock SetPlayerPosEx(playerid,Float:x,Float:y,Float:z,Float:angle,vw,int)
- {
- SetPlayerPos(playerid,x,y,z);
- SetPlayerFacingAngle(angle);
- SetPlayerVirtualWorld(playerid,vw);
- SetPlayerInterior(playerid,int);
- return 1;
- }
- stock ClearChat(playerid)
- {
- for(new i = 0; i < 100; i++)
- {
- SendClientMessage(playerid,-1,"");
- }
- return 1;
- }
- stock GiveScore(playerid,score)
- {
- new oldscore = GetPlayerScore(playerid);
- SetPlayerScore(playerid,oldscore+score);
- return 1;
- }
- stock Spam(const string[])
- {
- for(new i = 0; i < 200; i++)
- {
- SendClientMessageToAll(-1,string);
- }
- return 1;
- }
- stock SpamPlayer(playerid,const string[])
- {
- for(new i = 0; i < 200; i++)
- {
- SendClientMessage(playerid,-1,string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement