Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:carcommand(playerid,params[])
- {
- new
- szCom[100],
- szF[MAX_PLAYER_NAME +5],
- szName[MAX_PLAYER_NAME +1]
- ;
- GetPlayerName(playerid, szName, sizeof(szName));
- if(sscanf(params, "s[100]", szCom)) return SendClientMessage( playerid, -1, "Syntax: /test <text>");
- {
- format(szF, MAX_PLAYER_NAME +5, "%s.txt", szName,szCom);
- if(!fexist(szF))
- {
- new
- File:iFile = fopen(szF, io_write);
- fwrite(iFile, szCom);
- fclose(iFile);
- }
- else return SendClientMessage(playerid, -1, "Exista deja.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement