Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Needed includes:
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- CMD:setpvar(playerid, params[])
- {
- new targetid, string[64], amount;
- if(!sscanf(params, "us[64]i", targetid, string, amount))
- {
- if(targetid != INVALID_PLAYER_ID)
- {
- SetPVarInt(targetid,string,amount);
- }
- else SendClientMessage(playerid,-1,"Bad ID");
- }
- else SendClientMessage(playerid,-1,"SERVER: /setpvar <playerid> <PVarInt> <amount>");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement